//@author A0097005J
package logic;

import java.util.ArrayList;

import storage.Task;

public class DisplayPackage {

	private static final int INVALID_CODE = 0;
	private static final int ADD_CODE = 1;
	private static final int DELETE_CODE = 2;
	private static final int SEARCH_CODE = 3;
	private static final int EDIT_CODE = 4;
	private static final int UNDO_CODE = 5;
	private static final int REDO_CODE = 6;
	private static final int DISPLAY_CODE = 7;
	private static final int ADD_INVALID_CODE = -1;
	private static final int DELETE_INVALID_CODE = -2;
	private static final int SEARCH_INVALID_CODE = -3;
	private static final int EDIT_INVALID_CODE = -4;
	private static final int UNDO_INVALID_CODE = -5;
	private static final int REDO_INVALID_CODE = -6;
	
	private int commandCode = 0;
	private Task taskData = null;
	private ArrayList<Task> list = null;
	
	DisplayPackage(int commandCode, Task taskData) {
		this.commandCode = commandCode;
		this.taskData = taskData;
	}
	
	DisplayPackage(int commandCode, ArrayList<Task> list) {
		this.commandCode = commandCode;
		this.list = list;
	}
	
	DisplayPackage(int commandCode) {
		this.commandCode = commandCode;
	}
	
	public int getCommandCode() {
		return commandCode;
	}
	public void setcommandCode(int command_code) {
		this.commandCode = command_code;
	}
	public Task getTaskData() {
		return taskData;
	}
	public void setTaskData(Task taskData) {
		this.taskData = taskData;
	}

	public ArrayList<Task> getList() {
		return list;
	}

	public void setList(ArrayList<Task> list) {
		this.list = list;
	}

}
